<?php

foreach($Items as $item){
	$type = $bibtex->type($item['Dcvalue'], $BibTypes);

	switch($type) {
		case 'article' :
			echo "@article{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->article($item['Dcvalue']);
			break;
		case 'phdthesis' :
			echo "@phdthesis{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->phdthesis($item['Dcvalue']);
			break;
		case 'inproceeding' :
			echo "@inproceeding{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->inproceeding($item['Dcvalue']);
			break;
		case 'book' :
			echo "@book{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->book($item['Dcvalue']);
			break;
		case 'techreport' :
			echo "@techreport{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->techreport($item['Dcvalue']);
			break;
		case 'unpublished' :
			echo "@unpublished{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->unpublished($item['Dcvalue']);
			break;
		case 'manual' :
			echo "@manual{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->manual($item['Dcvalue']);
			break;
		case 'misc' :
			echo "@misc{";
			echo $bibtex->searchkey($item['Dcvalue']);
			echo $bibtex->misc($item['Dcvalue']);
			break;
	}
	echo "},\r\n"; // BibTeX の閉じタグ
}

?>